home *** CD-ROM | disk | FTP | other *** search
/ Champak 40 / Vol 40.iso / games / water_ba.swf / scripts / frame_8 / DoAction.as
Text File  |  2007-03-20  |  1KB  |  54 lines

  1. stop();
  2. _root.flipper.removeMovieClip();
  3. attachMovie("b_balloon2","bballoon",10,{_x:256,_y:-100});
  4. attachMovie("b_text2","btext",11,{_x:256,_y:-100,hh:0});
  5. bballoon.onEnterFrame = function()
  6. {
  7.    if(this._alpha <= 0)
  8.    {
  9.       if(_root.registeredgame)
  10.       {
  11.          _root.gotoAndStop("intro");
  12.       }
  13.       else
  14.       {
  15.          _root.gotoAndStop("register");
  16.       }
  17.       _root.btext.removeMovieClip();
  18.       this.removeMovieClip();
  19.    }
  20.    if(this.counter < 200)
  21.    {
  22.       this.counter = this.counter + 1;
  23.       if(!this.sound1)
  24.       {
  25.          this.sound1 = true;
  26.       }
  27.       this.snapinplace(1,1.2,192,256);
  28.    }
  29.    else
  30.    {
  31.       this._alpha -= 5;
  32.       _root.btext._alpha -= 5;
  33.    }
  34. };
  35. btext.onEnterFrame = function()
  36. {
  37.    if(this.counter < 40)
  38.    {
  39.       this.counter = this.counter + 1;
  40.    }
  41.    else
  42.    {
  43.       if(this.tick2 < 80)
  44.       {
  45.          this.tick2 = this.tick2 + 1;
  46.       }
  47.       else
  48.       {
  49.          this.blinker(30);
  50.       }
  51.       this.snapinplace(1,1.2,192,256);
  52.    }
  53. };
  54.